import os
import uuid


class Myfile:
    def __init__(self):
        self.dir = '../static/file/'

    def rename(self, file):
        fname = os.path.splitext(file)[1]
        filename = uuid.uuid4().hex + fname
        return filename


myf = Myfile()
